﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="NoticeList.aspx.cs" Inherits="ITOMMS.Web.Notice.NoticeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>公告列表</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />

    <script type="text/javascript" src="../js/ymPrompt.js"></script>
    
    <link href="../css/AspNetPager.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form id="form1" runat="server">
        <div id="message" style="background-color: Red">
        </div>
        <table class="tblDataArea" width="100%">
            <tr class="tblDataCaption">
                <td align="left" colspan="5">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" />公告列表</div>
                </td>
                <td align="left">
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption">
                    标题：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="TextBox2" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                        onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
                <td class="tdQueryCaption">
                    内容：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="TextBox4" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                        onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
                <td class="tdQueryField">
                    <asp:Button ID="Button1" runat="server" CssClass="cssUICommandButton" Text="查询" /></td>
            </tr>
        </table>
        <table class="tblDataArea" width="100%">
            <tr>
                <td class="tdQueryCaption" colspan="7" style="height: 348px; vertical-align: top;">
                    <asp:GridView ID="dgdaoim_sus_plyedr" Width="100%" runat="server" PageSize="15" AllowSorting="True" OnRowCommand="CMGridView1_RowCommand"
                OnRowDataBound="CMGridView1_RowDataBound"
                        HorizontalAlign="Center" AllowPaging="True" AutoGenerateColumns="False" CssClass="cssDataGrid">
                        <FooterStyle CssClass="cssDataGridFooter"></FooterStyle>
                        <SelectedRowStyle CssClass="cssDataGridSelectedItem"></SelectedRowStyle>
                        <EditRowStyle CssClass="cssDataGridEditItem"></EditRowStyle>
                        <AlternatingRowStyle CssClass="cssDataGridAlternatingItem"></AlternatingRowStyle>
                        <RowStyle CssClass="cssDataGridItem"></RowStyle>
                        <HeaderStyle ForeColor="#CCFFFF" CssClass="cssDataGridHeader"></HeaderStyle>
                        <Columns>
                            <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                            <asp:TemplateField HeaderText="标题">
                              
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("title").ToString(), 10)%></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:BoundField DataField="CreateDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="添加时间" />
                            <asp:BoundField DataField="ModifyDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="更新时间" />
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Notice/NoticeView.aspx?id={0}"
                                HeaderText="查看" Text="查看" />
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Notice/NoticeEdit.aspx?id={0}"
                                HeaderText="编辑" Text="编辑" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="del" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'>删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <div id="AspNetPager">
            <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页"
                OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
    
